home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Palettes / MiscGaugePalette / MiscGaugePalette.m < prev    next >
Encoding:
Text File  |  1995-04-14  |  827 b   |  48 lines

  1.  
  2.  
  3. #import "MiscGaugeView.subproj/MiscGaugeView.h"
  4. #import "MiscGaugePalette.h"
  5.  
  6.  
  7. @implementation  MiscGaugePalette
  8.  
  9. - finishInstantiate
  10. {
  11.     [super finishInstantiate];
  12.     // Change the appearance of the second gauge for a little 
  13.     // variety.
  14.     [(MiscGaugeView *)gauge2 setMinValue: 0];
  15.     [(MiscGaugeView *)gauge2 setMaxValue: 40];
  16.     [gauge2 setFloatValue: 15];
  17.     [gauge2 setTickInterval: 5];
  18.     [gauge2 setTickRatio: 0.55];
  19.     [gauge2 setHandRatio: 0.5];
  20.     [gauge2 setGaugeGray: NX_LTGRAY];
  21.     [gauge2 setTitlePosition: NX_ATBOTTOM];
  22.     [gauge2 setTitle: NULL];
  23.     return self;
  24. }
  25.  
  26. @end
  27.  
  28.  
  29. @implementation MiscGaugeCell (IBInspector)
  30.  
  31. - (const char *)getInspectorClassName
  32. {
  33.     return "MiscGaugeViewInspector";
  34. }
  35.  
  36. @end
  37.  
  38.  
  39. @implementation MiscGaugeView (IBInspector)
  40.  
  41. - (const char *)getInspectorClassName
  42. {
  43.     return "MiscGaugeViewInspector";
  44. }
  45.  
  46. @end
  47.  
  48.